#pragma once

#include <deque>
#include <mutex>
using namespace std;

#include "pos.h"

extern mutex mutex_keyboard[2];
extern mutex mutex_pos;

class player
{
private:
	int x, y, id;
	deque<char>* keyboard;
	deque<pos>* positionQueue;
public:
	player();
	player(int x, int y, int id, deque<char>* keyboard, deque<pos>* positionQueue);
	void operator()();
	~player();
};

